﻿
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <table id="registered-report-grid" lay-filter="registered-report-grid"></table>
        </div>
    </div>
</div>

<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
        }).use(['index', 'table'], function () {
        var index = layer.load(2, { shade: false });
            var table = layui.table
                , form = layui.form;
        //分类管理
        table.render({
            elem: '#registered-report-grid'
            , method: 'post'
            , url: '@Html.Raw(Url.Action("ReportRegisteredUsersList"))' //模拟接口
            , cols: [[
                { type: 'numbers', fixed: 'left' }
                , { field: 'Period', title: '@T("Admin.Users.Reports.RegisteredUsers.Fields.Period")', minWidth: 100 }
                , { field: 'Users', title: '@T("Admin.Users.Reports.RegisteredUsers.Fields.Users")', width: 100 }
            ]]
            , text: '对不起，加载出现异常！'
            , id: 'testReload'
            , page: true
            , done: function () {
                layer.close(index);
            }
         });
        var $ = layui.$, active = { }
        $('.layui-btn.layuiadmin-btn-tags').on('click', function () {
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });
    });
</script>

